<?php
  require "./tool_maths.php";
  require "../array/tool_array.php";

  $c = array(
    array(1,1,0,0),
    array(0,1,0,0),
    array(0,0,1,1),
    array(0,0,0,1),
    array(1,1,1,1)
  );

//  while($c){

  foreach($c as $c1){
    $base = array_keys($c1);
    $count = count($base);
    foreach($c as $c2){
      print tool_array::printr($c1);
      print "\n";
      print tool_array::printr($c2);
      print "\n";
      print " * jac : " . tool_maths::get_jaccard($c1,$c2,$base,$count) . "\n"; 
      print " * cos : " . tool_maths::get_angle($c1,$c2,$base,$count) . "\n"; 
      print " * im : " . tool_maths::get_IM($c1,$c2,$base,$count) . "\n"; 
      print "-----\n";
    }
  }


//  $gauss=tool_maths::get_gaussienne($array,array_keys($array));
//  print_r($gauss);

?>
